<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
    

<head><meta name="generator" content="Hexo 3.8.0">
    <meta charset="utf-8">
    <meta name="keywords" content="分类: C#, Zhou•Yong">
    <meta name="description" content="分类: C# | Zhou•Yong">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit|ie-stand|ie-comp">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <title>分类: C# | Zhou•Yong</title>
    <link rel="icon" type="image/png" href="/favicon.png">

    <link rel="stylesheet" type="text/css" href="/libs/awesome/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="/libs/materialize/css/materialize.min.css">
    <link rel="stylesheet" type="text/css" href="/libs/aos/aos.css">
    <link rel="stylesheet" type="text/css" href="/libs/animate/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/libs/lightGallery/css/lightgallery.min.css">
    <link rel="stylesheet" type="text/css" href="/css/matery.css">
    <link rel="stylesheet" type="text/css" href="/css/my.css">

    <script src="/libs/jquery/jquery-2.2.0.min.js"></script>
<link rel="stylesheet" href="/css/prism-tomorrow.css" type="text/css"></head>

</head>

<body>

<header class="navbar-fixed">
    <nav id="headNav" class="bg-color nav-transparent">
        <div id="navContainer" class="container">
            <div class="nav-wrapper">
                <div class="brand-logo">
                    <a href="/" class="waves-effect waves-light">
                        
                        <img src="/medias/logo.png" class="logo-img hide-on-small-only">
                        
                        <span class="logo-span">Zhou•Yong</span>
                    </a>
                </div>
                <a href="#" data-activates="mobile-nav" class="button-collapse"><i class="fa fa-navicon"></i></a>
<ul class="right">
    
    <li class="hide-on-med-and-down">
        <a href="/" class="waves-effect waves-light">
            
            <i class="fa fa-home"></i>
            
            <span>主页</span>
        </a>
    </li>
    
    <li class="hide-on-med-and-down">
        <a href="/about" class="waves-effect waves-light">
            
            <i class="fa fa-user-circle-o"></i>
            
            <span>个人介绍</span>
        </a>
    </li>
    
    <li class="hide-on-med-and-down">
        <a href="/categories" class="waves-effect waves-light">
            
            <i class="fa fa-bookmark"></i>
            
            <span>分类</span>
        </a>
    </li>
    
    <li class="hide-on-med-and-down">
        <a href="/tags" class="waves-effect waves-light">
            
            <i class="fa fa-tags"></i>
            
            <span>标签</span>
        </a>
    </li>
    
    <li class="hide-on-med-and-down">
        <a href="/friends" class="waves-effect waves-light">
            
            <i class="fa fa-address-book"></i>
            
            <span>推荐</span>
        </a>
    </li>
    
    <li>
        <a id="toggleSearch" class="waves-effect waves-light">
            <i id="searchIcon" class="mdi-action-search"></i>
        </a>
    </li>

</ul>

<div class="side-nav" id="mobile-nav">

    <div class="mobile-head bg-color">
        
        <img src="/medias/logo.png" class="logo-img circle responsive-img">
        
        <div class="logo-name">Zhou•Yong</div>
        <div class="logo-desc">
            
            你迈出的步伐不非得很大，只要你是在正确的方向前进就行
            
        </div>
    </div>

    <ul class="menu-list mobile-menu-list">
        
        <li>
            <a href="/" class="waves-effect waves-light">
                
                <i class="fa fa-fw fa-home"></i>
                
                主页
            </a>
        </li>
        
        <li>
            <a href="/about" class="waves-effect waves-light">
                
                <i class="fa fa-fw fa-user-circle-o"></i>
                
                个人介绍
            </a>
        </li>
        
        <li>
            <a href="/categories" class="waves-effect waves-light">
                
                <i class="fa fa-fw fa-bookmark"></i>
                
                分类
            </a>
        </li>
        
        <li>
            <a href="/tags" class="waves-effect waves-light">
                
                <i class="fa fa-fw fa-tags"></i>
                
                标签
            </a>
        </li>
        
        <li>
            <a href="/friends" class="waves-effect waves-light">
                
                <i class="fa fa-fw fa-address-book"></i>
                
                推荐
            </a>
        </li>
        
        
    </ul>

    <div class="social-link"><a href="#!" class="tooltipped" data-tooltip="邮件联系我: zy20081@126.com" data-position="top" data-delay="50">
    <i class="fa fa-envelope-open"></i>
</a>
<a href="#!" class="tooltipped" data-tooltip="QQ联系我: 314153271" data-position="top" data-delay="50">
    <i class="fa fa-qq"></i>
</a>

<a href="/atom.xml" class="tooltipped" target="_blank" data-tooltip="RSS 订阅" data-position="top" data-delay="50">
    <i class="fa fa-rss"></i>
</a>
</div>
</div>

            </div>
        </div>

        
    </nav>
</header>

<div class="bg-cover  about-cover" style="background-image: url('/medias/cover.jpg')">
    <div class="container">
        <div class="row">
            <div class="col s10 offset-s1 m8 offset-m2 l8 offset-l2">
                <div class="brand">
                    <div class="title center-align">
                    
                        ZhouYong &amp; Blog
                    
                    </div>

                    <div class="description center-align">
                    
                        你迈出的步伐不非得很大，只要你是在正确的方向前进就行
                    
                    </div>
                </div>
            </div>
        </div>
        
    </div>
</div>

<script>
// Dynamically switch banner pictures every day.
$('.bg-cover').css('background-image', 'url(/medias/banner/' + new Date().getDay() + '.jpg)');
</script>

<main class="content">

    

<div id="category-cloud" class="container chip-container">
    <div class="card">
        <div class="card-content">
            <div class="tag-title center-align">文章分类</div>
            <div class="tag-chips">
                
                
                
                <a href="/categories/ASP-NET/" title="ASP.NET: 18">
                    <span class="chip center-align waves-effect waves-light
                             chip-default " style="background-color: #F9EBEA;">ASP.NET
                        <span class="tag-length">18</span>
                    </span>
                </a>
                
                
                <a href="/categories/测试/" title="测试: 6">
                    <span class="chip center-align waves-effect waves-light
                             chip-default " style="background-color: #F5EEF8;">测试
                        <span class="tag-length">6</span>
                    </span>
                </a>
                
                
                <a href="/categories/C/" title="C#: 14">
                    <span class="chip center-align waves-effect waves-light
                             chip-active " style="background-color: #D5F5E3;">C#
                        <span class="tag-length">14</span>
                    </span>
                </a>
                
                
                <a href="/categories/工具/" title="工具: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default " style="background-color: #E8F8F5;">工具
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/categories/JAVA/" title="JAVA: 4">
                    <span class="chip center-align waves-effect waves-light
                             chip-default " style="background-color: #FEF9E7;">JAVA
                        <span class="tag-length">4</span>
                    </span>
                </a>
                
                
                <a href="/categories/前端/" title="前端: 3">
                    <span class="chip center-align waves-effect waves-light
                             chip-default " style="background-color: #F8F9F9;">前端
                        <span class="tag-length">3</span>
                    </span>
                </a>
                
                
                <a href="/categories/数据库/" title="数据库: 2">
                    <span class="chip center-align waves-effect waves-light
                             chip-default " style="background-color: #82E0AA;">数据库
                        <span class="tag-length">2</span>
                    </span>
                </a>
                
                
            </div>
        </div>
    </div>
</div>

    

    <article id="articles" class="container articles">
        <div class="row tags-posts">
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2019/01/16/gou-zao-han-shu/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/7.jpg" class="responsive-img" alt="构造函数">
                            
                            <span class="card-title">构造函数</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary">构造函数构造函数主要是用来创建对象时为对象赋初值来初始化对象。总与new运算符一起使用在创建对象的语句中 。A a=new A();
构造函</div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="fa fa-clock-o fa-fw icon-date"></i>2019-01-16
                            </span>
                            <span class="publish-author">
                                
                                <i class="fa fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/C/" class="post-category" target="_blank">
                                    C#
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/C-基础知识/" target="_blank">
                            <span class="chip bg-color">C# 基础知识</span>
                        </a>
                        
                        <a href="/tags/C/" target="_blank">
                            <span class="chip bg-color">C#</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2019/01/15/fan-she/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/15.jpg" class="responsive-img" alt="反射">
                            
                            <span class="card-title">反射</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary">反射定义一个类，并且生成dllusing System;
using System.Collections.Generic;
using S</div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="fa fa-clock-o fa-fw icon-date"></i>2019-01-15
                            </span>
                            <span class="publish-author">
                                
                                <i class="fa fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/C/" class="post-category" target="_blank">
                                    C#
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/C-基础知识/" target="_blank">
                            <span class="chip bg-color">C# 基础知识</span>
                        </a>
                        
                        <a href="/tags/C/" target="_blank">
                            <span class="chip bg-color">C#</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2019/01/15/duo-xian-cheng/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/22.jpg" class="responsive-img" alt="多线程">
                            
                            <span class="card-title">多线程</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary">多线程 C#支持通过多线程并行地执行代码，一个线程有它独立的执行路径，能够与其它的线程同时地运行。一个C#程序开始于一个单线程，这个单线程是</div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="fa fa-clock-o fa-fw icon-date"></i>2019-01-15
                            </span>
                            <span class="publish-author">
                                
                                <i class="fa fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/C/" class="post-category" target="_blank">
                                    C#
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/C-基础知识/" target="_blank">
                            <span class="chip bg-color">C# 基础知识</span>
                        </a>
                        
                        <a href="/tags/C/" target="_blank">
                            <span class="chip bg-color">C#</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2019/01/15/di-gui-vs-xun-huan/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/2.jpg" class="responsive-img" alt="递归VS循环">
                            
                            <span class="card-title">递归VS循环</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary">递归VS循环求第三位数前2位之和 ，一列数的规则如下: 1、1、2、3
 class Program
    {
        stati</div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="fa fa-clock-o fa-fw icon-date"></i>2019-01-15
                            </span>
                            <span class="publish-author">
                                
                                <i class="fa fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/C/" class="post-category" target="_blank">
                                    C#
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/C-基础知识/" target="_blank">
                            <span class="chip bg-color">C# 基础知识</span>
                        </a>
                        
                        <a href="/tags/C/" target="_blank">
                            <span class="chip bg-color">C#</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2019/01/15/dan-li-mo-shi/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/20.jpg" class="responsive-img" alt="单例模式">
                            
                            <span class="card-title">单例模式</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary">Singleton单例模式也就是保证一个类只有一个实例的一种实现方法，
写法一：   class Program
    {
       </div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="fa fa-clock-o fa-fw icon-date"></i>2019-01-15
                            </span>
                            <span class="publish-author">
                                
                                <i class="fa fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/C/" class="post-category" target="_blank">
                                    C#
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/C-基础知识/" target="_blank">
                            <span class="chip bg-color">C# 基础知识</span>
                        </a>
                        
                        <a href="/tags/C/" target="_blank">
                            <span class="chip bg-color">C#</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2019/01/15/linq/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/8.jpg" class="responsive-img" alt="LINQ">
                            
                            <span class="card-title">LINQ</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary">LINQ 基础LINQ
LINQ关键字
from 指定数据源和范围变量
where 根据布尔表达式(由逻辑与 或 等组成)从数据源中筛选元素</div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="fa fa-clock-o fa-fw icon-date"></i>2019-01-15
                            </span>
                            <span class="publish-author">
                                
                                <i class="fa fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/C/" class="post-category" target="_blank">
                                    C#
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/C-基础知识/" target="_blank">
                            <span class="chip bg-color">C# 基础知识</span>
                        </a>
                        
                        <a href="/tags/C/" target="_blank">
                            <span class="chip bg-color">C#</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2019/01/15/oop-ru-men-demo-cai-quan-you-xi/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/3.jpg" class="responsive-img" alt="OOP入门Demo-猜拳游戏">
                            
                            <span class="card-title">OOP入门Demo-猜拳游戏</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary">简单OOP-猜拳游戏
主要代码namespace 猜拳游戏
{
    public partial class Form1 : Form
</div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="fa fa-clock-o fa-fw icon-date"></i>2019-01-15
                            </span>
                            <span class="publish-author">
                                
                                <i class="fa fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/C/" class="post-category" target="_blank">
                                    C#
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/C-基础知识/" target="_blank">
                            <span class="chip bg-color">C# 基础知识</span>
                        </a>
                        
                        <a href="/tags/C/" target="_blank">
                            <span class="chip bg-color">C#</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2019/01/14/oop-ru-men-demo-xiao-chong-wu/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/23.jpg" class="responsive-img" alt="OOP入门Demo-小宠物">
                            
                            <span class="card-title">OOP入门Demo-小宠物</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary">
OOP入门Demo-小宠物class Program
    {
        static void Main(string[] ar</div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="fa fa-clock-o fa-fw icon-date"></i>2019-01-14
                            </span>
                            <span class="publish-author">
                                
                                <i class="fa fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/C/" class="post-category" target="_blank">
                                    C#
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/C-基础知识/" target="_blank">
                            <span class="chip bg-color">C# 基础知识</span>
                        </a>
                        
                        <a href="/tags/C/" target="_blank">
                            <span class="chip bg-color">C#</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="article tag-post col s12 m6 l4" data-aos="zoom-in">
                <div class="card">
                    <a href="/2019/01/13/c-zhi-ref/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/8.jpg" class="responsive-img" alt="C#之ref">
                            
                            <span class="card-title">C#之ref</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="summary">C#之ref
using System;
using System.Collections.Generic;
using System.Li</div>
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="fa fa-clock-o fa-fw icon-date"></i>2019-01-13
                            </span>
                            <span class="publish-author">
                                
                                <i class="fa fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/C/" class="post-category" target="_blank">
                                    C#
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>

                    
                    <div class="card-action article-tags">
                        
                        <a href="/tags/C-基础知识/" target="_blank">
                            <span class="chip bg-color">C# 基础知识</span>
                        </a>
                        
                        <a href="/tags/C/" target="_blank">
                            <span class="chip bg-color">C#</span>
                        </a>
                        
                    </div>
                    
                </div>
            </div>
            
        </div>
    </article>
</main>


<div class="container paging">
    <div class="row">
        <div class="col s6 m4 l4">
            
            <a class="left btn-floating btn-large disabled">
                <i class="fa fa-angle-left"></i>
            </a>
            
        </div>
        <div class="page-info col m4 l4 hide-on-small-only">
            <div class="center-align b-text-gray">1 / 2</div>
        </div>
        <div class="col s6 m4 l4">
            
            <a href="/categories/C/page/2/" class="right btn-floating btn-large waves-effect waves-light bg-color">
                <i class="fa fa-angle-right"></i>
            </a>
            
        </div>
    </div>
</div>


<footer class="page-footer bg-color">
    <div class="container row center-align">
        <div class="col s12 m8 l8 copy-right">
            本站由ZhouYong 技术分享，心得分享.
        </div>
        <div class="col s12 m4 l4 social-link"><a href="#!" class="tooltipped" data-tooltip="邮件联系我: zy20081@126.com" data-position="top" data-delay="50">
    <i class="fa fa-envelope-open"></i>
</a>
<a href="#!" class="tooltipped" data-tooltip="QQ联系我: 314153271" data-position="top" data-delay="50">
    <i class="fa fa-qq"></i>
</a>

<a href="/atom.xml" class="tooltipped" target="_blank" data-tooltip="RSS 订阅" data-position="top" data-delay="50">
    <i class="fa fa-rss"></i>
</a>
</div>
    </div>
</footer>

<div class="progress-bar"></div>


<!-- 搜索遮罩框 -->
<div id="searchModal" class="modal">
    <div class="modal-content">
        <div class="search-header">
            <span class="title">搜索</span>
            <input type="search" id="searchInput" name="s" placeholder="请输入搜索的关键字" class="search-input" autofocus>
        </div>
        <div id="searchResult"></div>
    </div>
</div>

<script src="/js/search.js"></script>
<script type="text/javascript">
    searchFunc("/" + "search.xml", 'searchInput', 'searchResult');
</script>
<!-- 回到顶部按钮 -->
<div id="backTop" class="top-scroll">
    <a class="btn-floating btn-large waves-effect waves-light" href="#!">
        <i class="fa fa-angle-up"></i>
    </a>
</div>


<script src="/libs/materialize/js/materialize.min.js"></script>
<script src="/libs/masonry/masonry.pkgd.min.js"></script>
<script src="/libs/aos/aos.js"></script>
<script src="/libs/scrollprogress/scrollProgress.min.js"></script>
<script src="/libs/lightGallery/js/lightgallery-all.min.js"></script>

<script src="/libs/others/clicklove.js"></script>

<script src="/js/matery.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->


</body>
</html>